package com.sqfw.project.wp.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sqfw.framework.aspectj.lang.annotation.Excel;
import com.sqfw.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 *
 * @TableName SYS_SHORT_MSG
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@KeySequence(value = "SEQ_SYS_SM", dbType = DbType.ORACLE)
@TableName(value ="T_SMS_SEND_LOG")
public class TSmsSendLog extends BaseEntity{
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 编码
     */
    @Excel(name = "编码")
    private String smNo;

    @Excel(name = "短信类型")
    private String smType;

    /**
     * 发送时间
     */
    @Excel(name = "发送时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 30)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /**
     * 用户号码
     */
    @Excel(name = "用户号码")
//    @NotBlank(message = "接收号码不能为空")
    private String receivePhone;

    // @NotBlank(message = "接收号码不能为空")
    @TableField(exist = false)
    private String receivePhones;

    /**
     * 处理环节
     */
    @Excel(name = "处理环节")
    private String wpState;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 短信内容
     */
    @Excel(name = "短信内容")
    @NotBlank(message = "短信内容不能为空")
    private String smContent;

    /**
     * 发送者工号
     */
    @Excel(name = "发送IP")
    private String sendIp;

    @Excel(name = "组织单位")
    @TableField(exist = false)
    private String groupname;


    @TableField(exist = false)
    private String remark;


}
